package com.lzx.adx.report.support.strategy.channel;

import cn.hutool.core.util.URLUtil;
import cn.hutool.crypto.SecureUtil;
import com.lzx.adx.report.annnotions.ProductType;
import com.lzx.adx.report.constant.ProductChannelConstant;
import com.lzx.adx.report.dto.AccountDTO;
import com.lzx.adx.report.dto.ReportDTO;
import com.lzx.adx.report.util.URLEncoderDecoderTool;
import com.lzx.adx.report.util.UrlUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

import java.nio.charset.StandardCharsets;
import java.util.LinkedHashMap;
import java.util.Map;

@Component
@Slf4j
@ProductType(ProductChannelConstant.JDJR)
public class JdjrReportStrategy extends AbstractReport{

    @Override
    public String getReportFinalUrl(ReportDTO reportDTO, AccountDTO accountDTO) {

        return  UrlUtil.handJdjrReplace(reportDTO,accountDTO);
    }
}
